package com.linwen.javase.desgin_pattern.action.command;

/**
 * @ClassName CommandTest
 * @Description
 * @Author lin
 * @Date 2022/6/26 下午10:30
 * @Version V1.0
 */
public class CommandTest {
    public static void main(String[] args) {
        AirConditioner airConditioner = new AirConditioner();   //先创建一个空调
        Controller.call(new OpenCommand(airConditioner));   //直接通过遥控器来发送空调开启命令
    }
}
